
package za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.Interpreter.Model;

import za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.Interpreter.Model.Expression;
import java.util.Map;

public class MulitplyExpression implements Expression 
{
    Expression left;
    Expression right;

    public MulitplyExpression(Expression left, Expression right)
    {
        this.left = left;
        this.right = right;
    }

    @Override
    public int interpret(Map<String, Expression> varibles) {return left.interpret(varibles) * right.interpret(varibles); }   
}